package zuoye;

import java.util.concurrent.Callable;

public class Callableint implements Callable<Integer> {
	public int start;
	public int end;
	
	public Callableint(int start, int end) {
		super();
		this.start = start;
		this.end = end;
	}

	public Integer call() throws Exception {
		int sum=0;
		for(int i=start;i<=end;i++){
			sum=i+sum;
		}
		return sum;
	}

}
